/**
 * Version 17 mrt 2008 - initial version
 */
package audioreaper.command;

/**
 * <code>Keyboard</code> is a very simple interface for triggering notes.
 * It has no special capabilities. Unlike a tracker, an instrument 
 * implementing Keyboard can 
 *
 * @author <a href="mailto:vincent@nazarene.nl">Vincent van Beveren</a>
 *
 */
public interface Keyboard {

	int MAX_LEVEL = 1024;
	
	/**
	 * Plays a note.
	 * 
	 * @param note		The (MIDI) note to play, see {@link audioreaper.tools.Tone}.
	 * @param level		The dynamic level, 0 - silent, MAX_LEVEL - very loud.
	 */
	void playNote(int note, int level);
	
	/**
	 * Mutes a (MIDI) note.
	 */
	void muteNote(int note);
	
}
